package com.tedu.bill.demo3;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * Author：毕龙
 * Date: 2024/5/26 17:19
 */
public class TestLen {
    public static void main(String[] args) throws IOException {

        FileInputStream fis = new FileInputStream("day14/src/b.txt");


        byte[] bytes = new byte[10];

        int len = bytes.length;
        while (( len = fis.read(bytes,0, len))!= -1){
            System.out.print(new String(bytes,0,len));
        }


    }
}
